package com.frontop.modules.feign;


import com.frontop.common.util.ResultJsonUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author YangBoos
 * @title: OauthFeign
 * @projectName frontop-cloud
 * @description:  Feign调用 自身服务的授权暴露给Dubbo调用
 */
@FeignClient("frontop-ao-auth")
public interface OauthFeign {
    @RequestMapping(value = "/auth/postAccessToken", method = RequestMethod.POST)
    ResultJsonUtil<Object> postAccessToken(@RequestParam Map<String, String> map);

}